package ie.lawlor.amvc.controller;

import ie.lawlor.amvc.Triad;
import ie.lawlor.amvc.event.EventName;


public class EmitToTriadEvent extends ControllerEventWrapper{
	
	protected Triad destination;
	public EmitToTriadEvent() {
		super();
	}
	public EmitToTriadEvent(EventName componentEvent, EventName applicationEvent){
		super(componentEvent, applicationEvent);
	}
	public void addToController(Controller controller){
		controller.emitToTriad(componentEvent, 
				applicationEvent,
				destination,
        override);
	}

  public Triad getTriad() {
		return destination;
	}

  public void setTriad(Triad triad) {
    this.destination = triad;
  }
}